package com.cskaoyan.controller.mall;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.PageDataVo;
import com.cskaoyan.service.mall.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: enhui
 **/
@RequestMapping("admin/region")
@RestController
public class RegionController {
    @Autowired
    RegionService regionService;

    @RequestMapping("list")
    public BaseRespVo regionList() {
        PageDataVo basePageData = regionService.regionList();
        return BaseRespVo.ok(basePageData);
    }
}
